package model

import (
	"image"
)

type ScreenShots struct {
	Image image.RGBA
}

func (a *ScreenShots) GetByte() ([]byte, error) {
	return Encode(&a)
}

func (a *ScreenShots) GetData(data []byte) (*ScreenShots, error) {
	err := Decode(data, &a)
	return a, err
}
